package com.xncoding.easypoi.model;

import cn.afterturn.easypoi.handler.inter.IExcelExportServer;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Component
public class ExportLoadDataHandler implements IExcelExportServer {

    @Override
    public List<Object> selectListForExcelExport(Object obj, int page) {
        List<Object> list = new ArrayList<Object>();
        for (int i = 0; i < 10000; i++) {
            ReMianPage mg01 = new ReMianPage();
            mg01.setXm("张坤");
            mg01.setXb("男");
            mg01.setCsny(new Date());
            mg01.setZp("D:/java/workspace/idea/springboot-bucket/springboot-easypoi/src/main/resources/template/123.png");
            list.add(mg01);
        }
        if(page>10){
            return null;
        }
        return list;
    }

}
